package com.uflower.user.service;

import cn.hutool.captcha.LineCaptcha;
import com.baomidou.mybatisplus.extension.service.IService;
import com.uflower.common.utils.PageUtils;
import com.uflower.user.entity.UserEntity;

import java.util.Map;

/**
 * 用户表
 *
 * @author bridge
 * @email bridgezrq@163.com
 * @date 2022-01-15 14:57:31
 */
public interface UserService extends IService<UserEntity> {

    /**
     * 根据用户名，查询系统用户
     */
    UserEntity queryByUserName(String username);

    PageUtils queryPage(Map<String, Object> params);

    void updateStatus(UserEntity user);

    /**
     * 生成token
     * @param userId  用户ID
     */
    String createToken(long userId,String username);

    /**
     * 获取图片验证码
     */
    LineCaptcha getCaptcha();

}

